<?php

$layout_defs['edanz_Jobs']['subpanel_setup'] = array(
	'deliverables' => array(
		'order' => 100,
		'module' => 'edanz_Deliverables',
		'get_subpanel_data' => 'deliverables',
		'sort_order' => 'desc',
		'sort_by' => 'date_entered',
		'subpanel_name' => 'ForJobs',
		'title_key' => 'LBL_SUBPANEL_DELIVERABLES',
		'top_buttons' => array(
			array('widget_class' => 'SubPanelTopButtonQuickCreate'),
		),
	),
	'history' => array(
			'order' => 100,
			'sort_order' => 'desc',
			'sort_by' => 'date_modified',
			'title_key' => 'LBL_EMAIL_HISTORY_SUBPANEL_TITLE',
			'type' => 'collection',
			'subpanel_name' => 'history',   //this values is not associated with a physical file.
			'module'=>'History',
			'top_buttons' => array(
				array('widget_class' => 'SubPanelTopComposeEmailButton'),
			),	
			'collection_list' => array(	
				'emails' => array(
					'module' => 'Emails',
					'subpanel_name' => 'ForJobs',
					'get_subpanel_data' => 'emails',
				),
		     ),
		),
);

global $beanList;
if (isset($beanList['SecurityGroups'])) {
	$layout_defs["edanz_Jobs"]["subpanel_setup"]["securitygroups_edanz_jobs"] = array (
		'order' => 999,
  		'module' => 'SecurityGroups',
  		'subpanel_name' => 'default',
  		'sort_order' => 'asc',
  		'sort_by' => 'id',
  		'title_key' => 'LBL_SECURITYGROUPS_SUBPANEL_TITLE',
  		'get_subpanel_data' => 'securitygroups_edanz_jobs',
  		'top_buttons' => 
  		array (
			0 => 
				array (
  					'widget_class' => 'SubPanelTopSelectButton',
  					'mode' => 'MultiSelect',
    			),
  		),
	);
}

?>